12 步:循环创建了一个小猫精灵,但列表显示没有显示字符串"kitten"

  • 在逻辑中,单击并拖出Update Display
  • 将它放在.append()下但循环之前。
  • 将 .update .update()中的pet_list my_var

当你运行您的代码,看看舞台上的显示现在如何显示小猫!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)